package com.zzh.controller;

import com.zzh.service.ItemRelationServiceImpl;
import com.zzh.util.BaseResultInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author：zhangzhanheng
 * @createTime: 2021/9/3  10:55 上午
 * @desc:
 * @version: 1.0.0
 **/
@RestController
public class AsyncController {

    @Resource
    ItemRelationServiceImpl itemRelationService;

    @RequestMapping("/async")
    public BaseResultInfo asyncDemo() {
        return itemRelationService.updateStatus();
    }

    @RequestMapping("/async/add")
    public BaseResultInfo asyncAdd() {
        return itemRelationService.add();
    }
}
